package com.lynn.mmcc.user.service.impl;
import java.util.ArrayList;
import java.util.List;

import javax.jws.WebService;

import com.lynn.mmcc.user.request.Hoteldetail;
import com.lynn.mmcc.user.request.Hoteloutline;
import com.lynn.mmcc.user.request.Roomdetail;
import com.lynn.mmcc.user.respose.Rhotel;
import com.lynn.mmcc.user.respose.Rroom;
import com.lynn.mmcc.user.server.serverService;
import com.lynn.mmcc.user.service.hotelService;

@SuppressWarnings("restriction")
@WebService(targetNamespace = "com.lynn.mmcc.user.service", endpointInterface = "com.lynn.mmcc.user.service.hotelService")
public class hotelServiceImpl implements hotelService {

	private serverService serService;

	public serverService getSerService() {
		return serService;
	}
	public void setSerService(serverService serService) {
		this.serService = serService;
	}
	/**
	 * 酒店列表
	 * @param hoteloutline
	 * @return
	 */
	public List<Rhotel> getHotelList(Hoteloutline hoteloutline){
		List<Rhotel> hotels = new ArrayList();
		if(hoteloutline.getHotelCityCode()!=null&&!"".equals(hoteloutline.getHotelCityCode())){
			hotels = serService.getHotelList(hoteloutline);
		}else{
			
		}
		
		return hotels;
	}
	/**
	 * 房间列表
	 * @param hoteldetail
	 * @return
	 */
	public List<Rroom> getRoomlList(Hoteldetail hoteldetail){
		
	    List<Rroom> rooms = new ArrayList();
        if(hoteldetail.getHotelCode()!=null&&!"".equals(hoteldetail.getHotelCode())){
        	rooms = serService.getRoomlList(hoteldetail);
		}else{
			
		}
		return rooms;
	}
	
	/**
	 * 房间详情
	 * @param roomdetail
	 * @return
	 */
	public Rroom getRoom(Roomdetail roomdetail){
		
		Rroom room = new Rroom();
        if(roomdetail.getRoomTypeCode()!=null&&!"".equals(roomdetail.getRoomTypeCode())){
        	room = serService.getRoom(roomdetail);
		}else{
			
		}	
	    return room;
		
	}

}
